package nicg.st.exception;

import nicg.st.util.ErrorCode;

/**
 * 全局异常
 *
 * @author GeChen
 */
public class GlobalException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	private String codeMsg;
	private Integer errorCode;

	public GlobalException(String codeMsg) {
		super(codeMsg.toString());
		this.codeMsg = codeMsg;
		this.errorCode = ErrorCode.ERROR;
	}

	public String getCodeMsg() {
		return codeMsg;
	}

	public GlobalException(String codeMsg, Integer errorCode) {
		super(codeMsg.toString());
		this.codeMsg = codeMsg;
		this.errorCode = errorCode;
	}
}
